// 环境变量
const environment = (import.meta as any).env.MODE as 'development' | 'production'

interface EnvURL {
    /** @description 开发环境 */
    development: string
    /** @description 生产环境 */
    production: string
}

// 环境域名
const envURL: EnvURL = {
    development: 'http://127.0.0.1:8848',
    production: 'https://www.jsjserve.top'
}

// 接口请求地址
export const baseURL = `${envURL[environment]}/api`

// 文件上传地址
export const uploadImgURL = `${envURL.production}/api/upload/files`

export default {
    baseURL,
    uploadImgURL
}
